import type { App } from 'vue'
import { permission, permissionHide } from './permission'

/**
 * 注册全局指令
 */
export function setupDirectives(app: App) {
  // 权限指令
  app.directive('permission', permission)
  app.directive('permission-hide', permissionHide)
}

export default setupDirectives

